﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;

namespace OpenAuth.App
{
    /// <summary>
    /// 门诊预交金预充值
    /// </summary>
    /// <returns></returns>
    public class BMZXX006App : ApiBaseApp<BMZXX006>
    {
        public BMZXX006App(IApiRepository<BMZXX006> repository) : base(repository)
        {
        }
        /// <summary>
        /// 门诊预交金预充值
        /// </summary>
        /// <returns></returns>
        public IEnumerable<BMZXX006> QueryHisPayNo(string patid,string name)
        {
            List<SqlParameter> param = new List<SqlParameter>();
            param.Add(new SqlParameter("@Patid", patid));
            param.Add(new SqlParameter("@Hzxm", name));
            param.Add(new SqlParameter("@Czyh", "hf001"));
            var result = Query<BMZXX006>("exec usp_web_webtrans_BMZXX006 @patid=@Patid,@hzxm=@Hzxm,@czyh=@Czyh", param);
            return result;
        }

    }
}
